﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Three_Managerment_Problem_save_Index" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
      <link href="/style/css/style7.css" rel="stylesheet" type="text/css" />
    <script>

        function yanz() {
            var name = document.getElementById("name").value;
            if (name == "") {
                alert("姓名不能为空");
                return false;
            }

            var str1 = document.getElementById("num").value;
            if (str1 == "") {
                alert("工号不能为空");
                return false;
            }

            var titles = document.getElementById("title").value;
            if (titles == "") {
                alert("标题不能为空");
                return false;
            }

            var con = document.getElementById("con").value;
            if (con == "") {
                alert("内容不能为空");
                return false;
            }

            var str = document.getElementById("tel").value;

            if (str == "") {
                alert("手机号不能为空");
                return false;
            }
        }
    </script>
    <!--弹出层样式-->
    <style type="text/css">
        #divLogin .tit, #detailtwo .tit, #detail .tit {
            background: -webkit-gradient(linear, left top, left bottom, from(#e9f8ff), to(#78c0de));
            display: block;
            height: 30px;
            cursor: move;
        }

            #divLogin .tit span, #detailtwo .tit span, #detail .tit span {
                float: right;
                line-height: 33px;
                padding: 0 8px;
                cursor: pointer;
                display: block;
            }
            #aaaa{
                
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
      
        <div class="formbody">
            <!--加一个半透明层-->
            <div id="doing" runat="server" style="display: none; filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3; background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute; left: 0; top: 0; overflow: hidden;">
            </div>
            <!--加一个弹出层-->
            <div id="divLogin" runat="server" style="background: #fff; padding: 10px; width: 600px; z-index: 1001; position: absolute; display: none; top: 50%; left: 50%; margin: -10% 0 0 -25%;">
                <div class="tit" onclick="ShowNo()"><span class="clo" style="font-size: 15px; color: #1d7ca4; font-weight: bolder;">关闭</span> </div>
                <div style="height:200px;overflow:scroll;width:100%">
                    <table class="tablelist">
                        <asp:Repeater runat="server" ID="repeater1">
                            <HeaderTemplate>
                                <thead>
                                    <tr>
                                        <th width="10%">事件编号</th>
                                        <th width="20%">标题</th>
                                        <th width="10%">事件状态</th>
                                        <th width="15%">上报时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr onclick="javascript:window.open('ViewEvents.aspx?id=<%#Eval("id") %>')">
                                    <td class="aaaa"><%#Eval("appealid") %></td>
                                    <td class="aaaa"><%#Eval("title").ToString().Length>13?Eval("title").ToString().Substring(0,13):Eval("title").ToString() %></td>
                                    <td class="aaaa"><%#sjzt(Convert.ToInt32(Eval("handle_type"))) %></td>
                                    <td class="aaaa"><%#Eval("regtime") %></td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                <%#repeater1.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"20\">暂无记录</td></tr>" : ""%>
                                        </tbody>
                            </FooterTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </div>
            <!--<div class="formtitle"><span>基本信息</span></div>-->
              <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
            <table class="toongji" width="88%" border="0" cellpadding="0" cellspacing="0" style="margin: 0 auto; border: #ccc 1px solid">
                <tbody>
                    <tr>
                        <td colspan="4" class="sjindex">事件基本信息</td>
                    </tr>
                    <tr>
                        <th width="14%">事件编号&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <input name="" readonly="true" id="biaohao" runat="server" class="wenben" type="text" /><span style="color: #ff0000; float: left; margin-left: 1%;">*</span></th>
                        <th width="14%">信息是否保密&nbsp;&nbsp;:</th>
                        <th width="36%">
                             <cite class="check">
                                <asp:RadioButton ID="rad9" runat="server" Checked="true" GroupName="n5" />
                                <span>否</span>
                                <asp:RadioButton ID="rad10" runat="server" GroupName="n5" />
                                <span>是</span>
                            </cite><span style="color: #ff0000; float: left; margin-left: 1%;">*</span>
                        </th>
                    </tr>
                    <tr>
                        <td colspan="4" class="sjindex">诉求人基本信息</td>
                    </tr>
                    <tr>
                        <th width="14%">诉求人姓名&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <input name="" id="name" maxlength="10" runat="server" type="text" class="wenben" />
                            <span style="color: #ff0000; float: left; margin-left: 1%;">*</span></th>
                        <th width="14%">联系电话&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <input name="" id="tel" maxlength="20" runat="server" type="text" class="wenben" />
                            <span style="color: #ff0000; float: left; margin-left: 1%;">*</span></th>
                    </tr>
                    
                    <tr>
                        <th width="14%">诉求大类&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <asp:DropDownList name="" ID="feilei" class="wenben" runat="server" AutoPostBack="true" OnSelectedIndexChanged="feilei_SelectedIndexChanged"></asp:DropDownList>
                            <span style="color: #ff0000; float: left; margin-left: 1%;">*</span>
                        </th>
                        <th width="14%">诉求小类&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <asp:DropDownList name="" ID="xiaolei" class="wenben" runat="server"></asp:DropDownList><span style="color: #ff0000; float: left; margin-left: 1%;">*</span>
                        </th>
                    </tr>
                          
                    <tr>
                        <th width="14%">归属&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <asp:DropDownList name="" ID="guishu" class="wenben" runat="server"></asp:DropDownList><span style="color: #ff0000; float: left; margin-left: 1%;">*</span>
                        </th>
                        <th width="14%">工号&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <input name="" id="num" maxlength="10" runat="server" type="number" class="wenben" value="0" />
                            <span style="color: #ff0000; float: left; margin-left: 1%;">*</span></th>
                    </tr>

                    <tr>
                        <th width="14%">电子信箱&nbsp;&nbsp;:</th>
                        <th width="36%" colspan="3">
                            <input name="" maxlength="50" id="email" runat="server" type="email" class="wenben" style="width: 96%"></th>
                    </tr>
                    <tr>
                        <th width="14%">诉求主题&nbsp;&nbsp;:</th>
                        <th width="36%" colspan="3">
                            <input type="text" id="title" maxlength="50" runat="server" class="wenben" style="width: 96%">
                            <span style="color: #ff0000; float: left; margin-left: 1%;">*</span></th>
                    </tr>
                    <tr>
                        <th width="14%">主要内容&nbsp;&nbsp;:</th>
                        <th width="36%" colspan="3">
                            <textarea type="text" id="con" maxlength="200" runat="server" class="wenben" style="width: 96%; resize:none; height:90px; overflow: scroll; margin: 1%" ></textarea></th>
                    </tr>
                        <tr>
                        <th width="14%">拟办意见&nbsp;&nbsp;:</th>
                        <th width="36%" colspan="3">
                            <textarea type="text" id="nbyj" maxlength="200" runat="server" class="wenben" style="width: 96%; resize:none; height:90px; overflow: scroll; margin: 1%" ></textarea></th>
                    </tr>
                    <tr style="display:none">
                        <th width="14%">是否公开事件&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <cite class="check">
                                <asp:RadioButton ID="rad" runat="server" Checked="true" GroupName="n1" />
                                <span>否</span>
                                <asp:RadioButton ID="rad2" runat="server" GroupName="n1" />
                                <span>是</span>
                            </cite>
                        </th>
                        <th width="14%">是否为重要事件&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <cite class="check">
                                <asp:RadioButton ID="rad3" runat="server" Checked="true" GroupName="n2" />
                                <span>否</span>
                                <asp:RadioButton ID="rad4" runat="server" GroupName="n2" />
                                <span>是</span>
                            </cite>
                        </th>
                    </tr>
                    <tr style="display:none">
                        <th width="14%">是否为紧急事件&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <cite class="check">
                                <asp:RadioButton ID="rad5" runat="server" Checked="true" GroupName="n3" />
                                <span>否</span>
                                <asp:RadioButton ID="rad6" runat="server" GroupName="n3" />
                                <span>是</span>
                            </cite>
                        </th>
                        <th width="14%">是否为重复事件&nbsp;&nbsp;:</th>
                        <th width="36%">
                            <cite class="check">
                                <asp:RadioButton ID="rad7" runat="server" Checked="true" GroupName="n4" />
                                <span>否</span>
                                <asp:RadioButton ID="rad8" runat="server" GroupName="n4" />
                                <span>是</span>
                            </cite>
                        </th>
                    </tr>
                   
                </tbody>
            </table>
            </ContentTemplate></asp:UpdatePanel>

        </div>
        <div class="butt">
            
             <asp:Button runat="server" name="" type="button" class="btn" Style="margin-right: 20px" OnClick="Unnamed2_Click" Text="无效电话" />
             <asp:Button runat="server" OnClientClick="return yanz()" name="" type="button" class="btn" Style="margin-right: 20px" OnClick="Unnamed1_Click" Text="直办" />
            <asp:Button runat="server" OnClientClick="return yanz()" name="" type="button" class="btn" Style="margin-right: 20px" OnClick="Unnamed_Click" Text="提交" />
        </div>
    </form>
    <script type="text/javascript">
        function ShowNo() //隐藏两个层 
        {
            document.getElementById("doing").style.display = "none";
            document.getElementById("divLogin").style.display = "none";
        }
        //function $(id) {
        //    return (document.getElementById) ? document.getElementById(id) : document.all[id];
        //}
        function showFloat() //根据屏幕的大小显示两个层 
        {
            var range = getRange();
            //$("#doing").style.width = range.width + "px";

            //$("#doing").style.height = range.height + "px";
            //$("#doing").style.display = "block";

            $("#doing").show();
            $("#divLogin").show(500);
            //document.getElementById("divLogin").style.display = "";
        }
        function getRange() //得到屏幕的大小 
        {
            var top = document.body.scrollTop;
            var left = document.body.scrollLeft;
            var height = document.body.clientHeight;
            var width = document.body.clientWidth;

            if (top == 0 && left == 0 && height == 0 && width == 0) {
                top = document.documentElement.scrollTop;
                left = document.documentElement.scrollLeft;
                height = document.documentElement.clientHeight;
                width = document.documentElement.clientWidth;
            }
            return { top: top, left: left, height: height, width: width };
        }
    </script>
</body>
</html>
